package com.itheima.homework8;

import java.io.*;

public class Demo8_CopyTxt {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(
                new FileInputStream("F:\\com\\窗里窗外.txt"));
        BufferedOutputStream bos = new BufferedOutputStream(
                new FileOutputStream("d12_zuoye_File&IO/窗里窗外.txt"));
        byte[] bytes = new byte[8192];
        int b;
        while ((b=bis.read())!=-1){
            bos.write(bytes);
        }
        bis.close();
        bos.close();
    }
}
